package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CategoryMapper {
    /**
     * 按类别id获取名称
     *
     * @param categoryId 类别id
     * @return {@link String}
     */
    @Select("select name from category where id=#{categoryId}")
    String getNameByCategoryId(Long categoryId);
}
